<html>

<body>
  <table border=0 cellSpacing=0 cellPadding=0 width="100%">
    <tr>
      <td colspan="6" align="center">成品委托生产订单</td>
    </tr>
    <tr>
      <td width="12%"><span style='font-size: 13'>单号</span></td>
      <td width="15%"><span style='font-size: 13'>{$data["ref"]}</span></td>
      <td width="12%"><span style='font-size: 13'>交货日期</span></td>
      <td width="15%"><span style='font-size: 13'>{$data["dealDate"]}</span></td>
      <td width="12%"><span style='font-size: 13'>打印时间</span></td>
      <td><span style='font-size: 13'>{$data["printDT"]}</span></td>
    </tr>
    <tr>
      <td><span style='font-size: 13'>工厂</span></td>
      <td colspan="3"><span style='font-size: 13'>{$data["factoryName"]}</span></td>
      <td><span style='font-size: 13'>联系电话</span></td>
      <td colspan="3"><span style='font-size: 22'>{$data["tel"]}</span></td>
    </tr>
    <tr>
      <td><span style='font-size: 13'>交货地址</span></td>
      <td colspan="5"><span style='font-size: 13'>{$data["dealAddress"]}</span></td>
    </tr>
    <tr>
      <td><span style='font-size: 13'>订单备注</span></td>
      <td colspan="5"><span style='font-size: 13'>{$data["billMemo"]}</span></td>
    </tr>
  </table>
  <br />
  <table border=1 cellSpacing=0 cellPadding=1 width="100%" style="border-collapse: collapse" bordercolor="#333333">
    <tr>
      <td>
        <div align="center" style='font-size: 13'>序号</div>
      </td>
      <td>
        <div align="center" style='font-size: 13'>商品编码</div>
      </td>
      <td>
        <div align="center" style='font-size: 13'>商品名称</div>
      </td>
      <td>
        <div align="center" style='font-size: 13'>规格型号</div>
      </td>
      <td>
        <div align="center" style='font-size: 13'>数量</div>
      </td>
      <td>
        <div align="center" style='font-size: 13'>单位</div>
      </td>
      <td>
        <div align="center" style='font-size: 13'>单价</div>
      </td>
      <td>
        <div align="center" style='font-size: 13'>金额</div>
      </td>
      <td>
        <div align="center" style='font-size: 13'>税率</div>
      </td>
      <td>
        <div align="center" style='font-size: 13'>价税合计</div>
      </td>
    </tr>
    <foreach name="data['items']" item="v" key="i">
      <tr>
        <td>
          <div align="center" style='font-size: 13'>{$i+1}</div>
        </td>
        <td>
          <div style='font-size: 13'>{$v["goodsCode"]}</div>
        </td>
        <td>
          <div style='font-size: 13'>{$v["goodsName"]}</div>
        </td>
        <td>
          <div style='font-size: 13'>{$v["goodsSpec"]}</div>
        </td>
        <td>
          <div align="center" style='font-size: 13'>{$v["goodsCount"]}</div>
        </td>
        <td>
          <div style='font-size: 13'>{$v["unitName"]}</div>
        </td>
        <td>
          <div align="right" style='font-size: 13'>{$v["goodsPrice"]}</div>
        </td>
        <td>
          <div align="right" style='font-size: 13'>{$v["goodsMoney"]}</div>
        </td>
        <td>
          <div align="right" style='font-size: 13'>{$v["taxRate"]}%</div>
        </td>
        <td>
          <div align="right" style='font-size: 13'>{$v["goodsMoneyWithTax"]}</div>
        </td>
      </tr>
    </foreach>
    <tr>
      <td>
        <div align="center">合计</div>
      </td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td>
        <div align="right">￥{$data["goodsMoney"]}</div>
      </td>
      <td></td>
      <td>
        <div align="right">￥{$data["moneyWithTax"]}</div>
      </td>
    </tr>
  </table>
</body>

</html>
